import request from '../../utils/request'
import { ApiModulesRoutes } from '../../consts.js'
/**
 * 查询所有组织
 */

export function getAllOrg() {
  return request({
    url: `${ApiModulesRoutes.USER}/org/findOrgList`,
    method: 'POST',
    data: {},
  })
}

/**
 * 获取组织下的成员
 * @param {String} params.orgCode
 * @param {String} params.keyword
 */

export function getUserListByParam(params) {
  return request({
    url: `${ApiModulesRoutes.USER}/user/getUserListByParam`,
    method: 'GET',
    params,
  })
}
